﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainModel;

namespace DataProvider
{
    public interface IProductProvider
    {
        void CreateCategory(Category newCategory);

        void DeleteCategoryByID(int id);

        void UpdateCategory(Category category);

        IEnumerable<Category> GetAllCategories();

        IEnumerable<Category> GetChildrenCategoriesByParentID(int parentId);

        Category GetCategoryByID(int id);


        void CreateProduct(Product product);

        void DeleteProductByID(int id);

        void UpdateProduct(Product product);

        IEnumerable<Product> GetAllProducts();

        Product GetProductByID(int id);


        IEnumerable<Order> GetAllOrders();

        void DeleteOrderByID(int id);

        Order GetOrderByID(int id);

        IEnumerable<OrderDetail> GetOrderDetailsByOrderID(int id);
    }
}
